package org.jeecg.modules.demo.crm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import org.jeecg.common.constant.ProvinceCityArea;
import org.jeecg.common.util.SpringContextUtils;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.jeecg.modules.demo.crm.annotation.FileField;
import org.jeecg.modules.demo.crm.annotation.TitleField;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 任务功能
 * @Author: jeecg-boot
 * @Date:   2025-06-16
 * @Version: V1.0
 */
@Data
@TableName("c_task")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="c_task对象", description="任务功能")
public class CTask implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**任务名称*/
	@Excel(name = "任务名称", width = 15)
    @ApiModelProperty(value = "任务名称")
    @TitleField // AOP 监听文件数据，存入文件表
    private String name;
/*	*//**项目名称*//*
	@Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String projectName;*/
    /**项目编号*/
    @Excel(name = "项目编号", width = 15)
    @ApiModelProperty(value = "项目编号")
    private String projectNo;
	/**项目ID*/
	@Excel(name = "项目ID", width = 15, dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
	@Dict(dictTable = "c_project_application", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目ID")
    private String projectId;
    /**子项目ID*/
    @Excel(name = "子项目ID", width = 15, dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @Dict(dictTable = "c_sub_project", dicText = "sub_project_name", dicCode = "id")
    @ApiModelProperty(value = "子项目ID")
    private String subProjectId;
	/**任务地址*/
	@Excel(name = "任务地址", width = 15)
    @ApiModelProperty(value = "任务地址")
    private String address;
	/**任务日期*/
	@Excel(name = "任务日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "任务日期")
    private Date taskDate;
	/**任务内容描述*/
	@Excel(name = "任务内容描述", width = 15)
    @ApiModelProperty(value = "任务内容描述")
    private String content;
	/**任务类型*/
	@Excel(name = "任务类型", width = 15)
    @ApiModelProperty(value = "任务类型")
    @Dict(dicCode = "task_type")
    private String type;
/*	*//**项目地点*//*
	@Excel(name = "项目地点", width = 15)
    @ApiModelProperty(value = "项目地点")
    private String projectSite;*/
	/**联系人*/
	@Excel(name = "联系人", width = 15)
    @ApiModelProperty(value = "联系人")
    private String contactPerson;
	/**联系电话*/
	@Excel(name = "联系电话", width = 15)
    @ApiModelProperty(value = "联系电话")
    private String phone;
	/**情况图片视频*/
	@Excel(name = "情况图片视频", width = 15)
    @ApiModelProperty(value = "情况图片视频")
    @FileField // AOP 监听文件数据，存入文件表
    private String situationMedia;
	/**分配给谁*/
    @Excel(name = "分配给谁", width = 15, dictTable = "sys_user", dicText = "username", dicCode = "id")
    @Dict(dictTable = "sys_user", dicText = "username", dicCode = "id")
    private String assignedTo;
	/**处理日期*/
	@Excel(name = "处理日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "处理日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)//空值也会修改
    private Date processingDate;
	/**处理结果描述*/
	@Excel(name = "处理结果描述", width = 15)
    @ApiModelProperty(value = "处理结果描述")
    private String processingResult;
	/**处理附件*/
	@Excel(name = "处理附件", width = 15)
    @ApiModelProperty(value = "处理附件")
    @FileField // AOP 监听文件数据，存入文件表
    private String attachment;

    /**处理状态*/
    @Excel(name = "处理状态", width = 15)
    @ApiModelProperty(value = "处理状态")
    @Dict(dicCode ="processingStatus")
    private String processingStatus;

    /**服务单位*/
    @Excel(name = "服务单位", width = 15)
    @ApiModelProperty(value = "服务单位")
    private String serviceUnit;
    /**验收单地址*/
    @Excel(name = "验收单地址", width = 15)
    @ApiModelProperty(value = "验收单地址")
    @FileField // AOP 监听文件数据，存入文件表
    private String execlUrl;

    /**验收单地址*/
    @Excel(name = "验收单地址", width = 15)
    @ApiModelProperty(value = "验收单地址")
    @FileField // AOP 监听文件数据，存入文件表
    private String pdfUrl;

    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
}
